const install = (Vue, vm) => {
	// 公共部分
	// let setting = (params) => vm.$u.post('setting', params);
	let upload = (params) => vm.$u.post('upload', params); //上传图片
	// let smsSend = (params) => vm.$u.get('system/user/sendAuthCode/'+params.phone); //发送验证码
    
	// let register = (params) => vm.$u.post('system/user/enrollR', params); //注册
    let miniapplogin = (params) => vm.$u.post('/api/login/miniapplogin', params);//登录第一步
	let auth_login = (params) => vm.$u.post('/api/login/getMobileInfo', params);//获取手机号
	let user = (params) => vm.$u.post('/api/user/getData', params);//获取用户信息
	let mnlogin = (params) => vm.$u.post('/api/user/login', params);//模拟登陆
	let addressall = (params) => vm.$u.post('/api/address/all', params);//地址列表
	let addressadd = (params) => vm.$u.post('/api/address/add', params);//地址添加
	let addressedit = (params) => vm.$u.post('/api/address/edit', params);//地址修改
	let addressinfo = (params) => vm.$u.post('/api/address/info', params);//地址详情
	let getInsuranceistList = (params) => vm.$u.get('/api/task/getInsuranceistList', params);//保险列表
	let getOccupationList = (params) => vm.$u.get('/api/task/getOccupationList', params);//工种列表
	let taskadd = (params) => vm.$u.post('/api/task/add', params);//添加招工信息
	let getFuli = (params) => vm.$u.post('/api/task/getFuli', params);//获取福利
	let addressdel = (params) => vm.$u.post('/api/address/del', params);//删除地址
	let addressdefault = (params) => vm.$u.post('/api/address/default', params);//获取默认地址
	let jisuan = (params) => vm.$u.post('/api/task/jisuan', params);//计算积分
	let agetCate = (params) => vm.$u.post('/api/task/getCate', params);//老板订单分类
	let agetList = (params) => vm.$u.post('/api/task/getList', params);//老板订单列表
	let agetInfo = (params) => vm.$u.post('/api/task/getInfo', params);//老板订单详情
	let getPriceList = (params) => vm.$u.post('/api/task/getPriceList', params);//费用明细
	let getBuyParams = (params) => vm.$u.post('/api/Integral/getBuyParams', params);//获取积分参数
	let getNumsByDistance = (params) => vm.$u.post('/api/index/getNumsByDistance', params);//获取老板附近工人
	let getTaskOrderStatus = (params) => vm.$u.post('/api/order/getTaskOrderStatus', params);//获取订单详情员工订单状态
	let getTaskOrderList = (params) => vm.$u.post('/api/order/getTaskOrderList', params);//获取订单详情员工订单列表
	let getTaskOrderInfo = (params) => vm.$u.post('/api/order/getTaskOrderInfo', params);//获取订单详情员工订单详情
	let getClockList = (params) => vm.$u.post('/api/order/getClockList', params);//获取打卡记录
	let getTaskOrderPayParams = (params) => vm.$u.post('/api/order/getTaskOrderPayParams', params);//获取结算薪资信息
	let getQuestionList = (params) => vm.$u.post('/api/index/getQuestionList', params);//遇到问题
	let getBlackList = (params) => vm.$u.post('/api/user/getBlackList', params);//获取黑名单
	let delBlack = (params) => vm.$u.post('/api/user/delBlack', params);//解除黑名单
	let profile = (params) => vm.$u.post('/api/user/profile', params);//修改用户信息
	let getMessageList = (params) => vm.$u.post('/api/user/getMessageList', params);//系统消息
	let setNowIdentity = (params) => vm.$u.post('/api/user/setNowIdentity', params);//切换身份
	let send = (params) => vm.$u.post('/api/sms/send', params);//发送短信
	let changemobile = (params) => vm.$u.post('/api/user/changemobile', params);//修改手机号
	let getTemplate = (params) => vm.$u.post('/api/task/getTemplate', params);//发单模版
	let deiTemplate = (params) => vm.$u.post('/api/task/deiTemplate', params);//删除模版
	let getTaskList = (params) => vm.$u.post('/api/order/getTaskList', params);//任务列表
	let addOrder = (params) => vm.$u.post('/api/Integral/addOrder', params);//添加积分充值订单
	let getRechangePay = (params) => vm.$u.post('/api/pay/getRechangePay', params);//获取积分充值订单支付参数
	let getShouList = (params) => vm.$u.post('/api/user/getShouList', params);//获取收入明细
	let getJiangList = (params) => vm.$u.post('/api/user/getJiangList', params);//获取奖励明细
	let getAccountList = (params) => vm.$u.post('/api/user/getAccountList', params);//账号列表
	let getAccountInfo = (params) => vm.$u.post('/api/user/getAccountInfo', params);//账号详情
	let addAccount = (params) => vm.$u.post('/api/user/addAccount', params);//账号添加
	let editAccount = (params) => vm.$u.post('/api/user/editAccount', params);//账号编辑
	let getCounponList = (params) => vm.$u.post('/api/user/getCounponList', params);//优惠券
	let addTemplate = (params) => vm.$u.post('/api/task/addTemplate', params);//添加模版
	let editTemplate = (params) => vm.$u.post('/api/task/editTemplate', params);//修改模版名称	
	let useTemplate = (params) => vm.$u.post('/api/task/useTemplate', params);//使用模版
	let doAuth = (params) => vm.$u.post('/api/user/doAuth', params);//实名认证
	let getOrderInfo = (params) => vm.$u.post('/api/order/getOrderInfo', params);//列表详情
	let bgetData = (params) => vm.$u.get('/api/invite/getData', params);//奖励
	let getListByGongren = (params) => vm.$u.post('/api/invite/getListByGongren', params);//邀请员工奖励
	let getCateByGongren = (params) => vm.$u.get('/api/invite/getCateByGongren', params);//获取邀请分类
	
	let getListByBoss = (params) => vm.$u.post('/api/invite/getListByBoss', params);//邀请老板奖励
	let getBaomingInfo = (params) => vm.$u.post('/api/order/getBaomingInfo', params);//报名详情
	let addBaoming = (params) => vm.$u.post('/api/order/addBaoming', params);//报名
	let checkBaoming = (params) => vm.$u.post('/api/order/checkBaoming', params);//报名-检测
	let getTaskListByUser = (params) => vm.$u.post('/api/order/getTaskListByUser', params);//订单中心
	let jieaddOrder = (params) => vm.$u.post('/api/order/addOrder', params);//接单
	let cancelTaskOrder = (params) => vm.$u.post('/api/order/cancelTaskOrder', params);//取消订单
	let addJubaoBoss = (params) => vm.$u.post('/api/order/addJubaoBoss', params);//举报老板
	let checkWrok = (params) => vm.$u.post('/api/order/checkWrok', params);//开工检测
	let addEvaluate = (params) => vm.$u.post('/api/order/addEvaluate', params);//添加评价
	let getAddress = (params) => vm.$u.post('/api/index/getAddress', params);//根据经纬度获取地址
	let editPrice = (params) => vm.$u.post('/api/task/editPrice', params);//加工价
	let cancelTask = (params) => vm.$u.post('/api/task/cancelTask', params);//取消招工
	let getOrderUser = (params) => vm.$u.post('/api/task/getOrderUser', params);//联系他
	let dismissTask = (params) => vm.$u.post('/api/task/dismissTask', params);//开除
	let addBlack = (params) => vm.$u.post('/api/user/addBlack', params);//加入黑名单
	let stopTask = (params) => vm.$u.post('/api/task/stopTask', params);//提前终止用工
	let getWgByBoss = (params) => vm.$u.post('/api/index/getWgByBoss', params);//获取违规公示-老板
	let getWgByGongrenType = (params) => vm.$u.post('/api/index/getWgByGongrenType', params);//获取违规公示类型-员工
	let getWgByGongren = (params) => vm.$u.post('/api/index/getWgByGongren', params);//获取违规公示-员工
	let editWorkStatus = (params) => vm.$u.post('/api/order/editWorkStatus', params);//替他开工
	let getJubaoOrderList = (params) => vm.$u.post('/api/order/getJubaoOrderList', params);//获取举报任务
	let tiaddOrder = (params) => vm.$u.post('/api/withdrawal/addOrder', params);//申请提现
	let cancelBaoming = (params) => vm.$u.post('/api/order/cancelBaoming', params);//取消报名
	let getPayTaskFee = (params) => vm.$u.post('/api/task/getPayTaskFee', params);//获取结算参数
	let addZyImage = (params) => vm.$u.post('/api/order/addZyImage', params);//上传技能照片
	let endWorkStatus = (params) => vm.$u.post('/api/order/endWorkStatus', params);//完工
	let getCompletedData = (params) => vm.$u.post('/api/order/getCompletedData', params);//获取已完成参数
	let addPayTaskOrder = (params) => vm.$u.post('/api/task/addPayTaskOrder', params);//获取已完成结算
	let getTaskOrderPay = (params) => vm.$u.post('/api/pay/getTaskOrderPay', params);//结算
	let yaogetInit = (params) => vm.$u.post('/api/invite/getInit', params);//获取邀请配置
	let getMyblock = (params) => vm.$u.post('/api/index/getMyblock', params);//获取资料
	let getIntegralList = (params) => vm.$u.post('/api/user/getIntegralList', params);//积分明细
	let getUserCrditList = (params) => vm.$u.post('/api/user/getUserCrditList', params);//员工信用分明细
	let getBossCrditList = (params) => vm.$u.post('/api/user/getBossCrditList', params);//老板信用分明细
	let addYuangong = (params) => vm.$u.post('/api/user/addYuangong', params);//开通员工
	let getYuanGong = (params) => vm.$u.post('/api/user/getYuanGong', params);//员工列表
	let treatyinfo = (params) => vm.$u.post('/api/treaty/doTreaty', params);//获取协议内容
	let deletedMessageAll = (params) => vm.$u.post('/api/message/deletedMessageAll', params);//删除消息
	let taskedit = (params) => vm.$u.post('/api/task/edit', params);//修改招工信息
	
	// let home = (params) => vm.$u.get('/api/jobs/list/0', params);//获取工作列表
	// let homenew = (params) => vm.$u.get('/api/v2/home', params);//获取工作列表-新
	// let details = (params) => vm.$u.get('/api/v2/details', params);//获取工作详情-新
	// let report = (params) => vm.$u.post('/api/user/report', params);//举报
	// let couponslist = (params) => vm.$u.get('/api/coupons/user/'+params.types, params);//卡券
	// let addresslist = (params) => vm.$u.get('/api/address/list', params);//获取招工地址
	// // let addressedit = (params) => vm.$u.post('/api/address/edit', params);//添加招工地址
	// let occupation = (params) => vm.$u.get('/api/business/occupation', params);//获取工种
	// let benefitlist = (params) => vm.$u.get('/api/business/benefit', params);//获取福利
	// let insuranceist = (params) => vm.$u.get('/api/business/insuranceist', params);//获取保险列表
	// let addressdel = (params) => vm.$u.post('/api/address/del', params);//删除地址
	// let addressdefault = (params) => vm.$u.post('/api/address/default/set', params);//设为默认地址
	// let userposition = (params) => vm.$u.post('/api/user/position', params);//更新当前位置
	// let noticelist = (params) => vm.$u.get('/api/home/notice', params);//获取公告
	// let noticedetail = (params) => vm.$u.get('/api/article/details/'+params.id, params);//获取公告详情
	// let createjob = (params) => vm.$u.post('/api/business/createjob', params);//发布任务
	// let near = (params) => vm.$u.post('/api/business/near', params);//老板附近工人
	// let joblist = (params) => vm.$u.post('/api/v2/jobs/list', params);//我发布的任务
	// let xiaolist = (params) => vm.$u.get('/api/user/message_system/list');//消息列表
	// let blacklist = (params) => vm.$u.post('/api/user/blacklist', params);//获取黑名单
	// let usertask = (params) => vm.$u.post('/api/user/task', params);//获取用户订单
	// let bindingzfb = (params) => vm.$u.post('/api/user/binding/zfb', params);//绑定支付宝
	// let bindingwx = (params) => vm.$u.post('/api/user/binding/wx', params);//绑定微信
	// let bindingbank = (params) => vm.$u.post('/api/user/binding/bank', params);//绑定银行卡
	// let receiving_account = (params) => vm.$u.post('/api/user/receiving_account', params);//账号列表
	// let help = (params) => vm.$u.get('/api/public/help/'+params.id, params);//1用户 2老板 遇到问题
	// let ordercreate = (params) => vm.$u.post('/api/order/create', params);//创建订单
	// let paylist = (params) => vm.$u.get('/api/public/paylist');//老板端-积分购买列表
	// let setting = (params) => vm.$u.get('/api/get_agreement/'+params.id, params);//协议
	// let orderlist = (params) => vm.$u.post('/api/business/order/list', params);//老板端订单列表
	// let orderdetails= (params) => vm.$u.post('/api/business/order/details', params);//老板端订单详情
	vm.$u.api = {
		miniapplogin,
		auth_login,
		user,
		mnlogin,
		addressall,
		addressadd,
		addressedit,
		addressinfo,
		getOccupationList,
		getInsuranceistList,
		taskadd,
		getFuli,
		addressdel,
		addressdefault,
		jisuan,
		agetCate,
		agetList,
		agetInfo,
		getPriceList,
		getBuyParams,
		getNumsByDistance,
		getTaskOrderStatus,
		getTaskOrderList,
		getTaskOrderInfo,
		getClockList,
		getTaskOrderPayParams,
		getQuestionList,
		getBlackList,
		delBlack,
		profile,
		getMessageList,
		setNowIdentity,
		send,
		changemobile,
		getTemplate,
		deiTemplate,
		getTaskList,
		getRechangePay,
		addOrder,
		getJiangList,
		getShouList,
		getAccountInfo,
		getAccountList,
		editAccount,
		addAccount,
		getCounponList,
		addTemplate,
		editTemplate,
		useTemplate,
		doAuth,
		getOrderInfo,
		bgetData,
		getListByGongren,
		getListByBoss,
		getCateByGongren,
		getBaomingInfo,
		addBaoming,
		checkBaoming,
		getTaskListByUser,
		jieaddOrder,
		cancelTaskOrder,
		addJubaoBoss,
		checkWrok,
		addEvaluate,
		getAddress,
		editPrice,
		cancelTask,
		getOrderUser,
		dismissTask,
		addBlack,
		stopTask,
		getWgByBoss,
		getWgByGongren,
		getWgByGongrenType,
		editWorkStatus,
		getJubaoOrderList,
		tiaddOrder,
		cancelBaoming,
		getPayTaskFee,
		addZyImage,
		endWorkStatus,
		getCompletedData,
		addPayTaskOrder,
		getTaskOrderPay,
		yaogetInit,
		getMyblock,
		getIntegralList,
		getBossCrditList,
		getUserCrditList,
		getYuanGong,
		addYuangong,
		treatyinfo,
		deletedMessageAll,
		taskedit,
		// home,
		// homenew,
		// details,
		// report,
		// couponslist,
		// addresslist,
		// addressedit,
		// occupation,
		// benefitlist,
		// insuranceist,
		// addressdel,
		// addressdefault,
		// userposition,
		// noticelist,
		// noticedetail,
		// createjob,
		// near,
		// joblist,
		// xiaolist,
		// blacklist,
		// usertask,
		// bindingzfb,
		// bindingwx,
		// bindingbank,
		// receiving_account,
		// help,
		// ordercreate,
		// paylist,
		// setting,
		// orderlist,
		// orderdetails
	};
}
export default {
	install
}
// @click.stop="navrouter('/pages/my/yhXieyi?key=yonghuxieyi')"
// let res = await this.$u.api.pickUpTheGoods({
// 	monadId:id
// });
// if(res.code == 200){
// 	this.$u.toast("提货成功");
// 	this.goodList = []
// 	this.getlist();
// }else{
// 	this.$u.toast("失败");
// }
//:src="ossThree(item.bigimage)"

// getClear(){
// 	this.list = []
// 	this.page = 1,
// 	this.status= "loadmore"
// 	this.getList()
// }
// userid:uni.getStorageSync('userid')
// :src="ossThree('/ui/twobg.png')"
// list: [],
// page: 1,
// limit: 10,
// last_page: 1,
// status: "loadmore",

{/* <u-loadmore :status="status" @loadmore="loadmore" /> */}

// async getList(){//列表数据
// 	let res = await this.$u.api.SearchHotel({
// 	  limit:this.limit,
// 	  page:this.page
// 	});
// let list = res;
// this.list = this.page == 1 ? list : [...this.list, ...list];	
// if(res.list==''||Number(list.length)<Number(this.limit)){
// 	this.status = 'nomore';
// }
// 	}
	
// },
// loadmore() {
// 	let page = this.page;
// 	// let last_page = this.last_page;
// 	if (this.status == 'loadmore') {
// 		this.page++;
// 		this.getList();
// 	}
// },

// onReachBottom: function () {
// 	this.loadmore();
// },

{/* <view class="newbot">
	<view class="botview">
		<view class="lianxi">
			<text class="lname">提交</text>
		</view>
	</view>
</view> */}
// .newbot{
// 	display: flex;
// 	flex-direction: column;
// 	// height: 200rpx;
// 	position: fixed;
// 	bottom: 0;
// 	width: 100%;
// }
// .botview{
// 	height: 120rpx;
// 	background: #FFFFFF;
// 	width: 100%;
	
// 	display: flex;
// 	flex-direction: row;
// 	align-items: center;
// 	z-index: 10;
// 	// border-top: 1rpx solid #eee;
// 	padding: 0 30rpx 20rpx 30rpx;
// 	.botleft{
// 		width: 20%;
// 		display: flex;
// 		align-items: center;
// 		justify-content: center;
// 		flex-direction: column;
// 		.icon_fenxiang{
// 			width: 40rpx;
// 			height: 40rpx;
// 			margin-bottom: 5rpx;
// 		}
// 		text{
// 			font-size: 20rpx;
// 			font-family: PingFang SC;
// 			font-weight: 400;
// 			color: #666;
// 		}
// 	}
// 	.lianxi{
// 		margin-left: auto;
// 		width: 100%;
// 		height: 90rpx;
// 		background: linear-gradient(90deg, #FF8F39, #FF4D43);
// 		border-radius: 45rpx;
// 		display: flex;
// 		align-items: center;
// 		justify-content: center;
// 		flex-direction: column;
// 		font-size: 26rpx;
// 		font-family: PingFang SC;
// 		font-weight: 500;
// 		color: #FFFFFF;
// 		.lname{
// 			font-weight: bold;
// 			font-size: 28rpx;
// 			color: #FFFFFF;
// 		}
// 		.lmiao{
// 			font-weight: 500;
// 			font-size: 20rpx;
// 			color: #FFFFFF;
// 		}
// 	}
// 	.liantwo{
// 		display: flex;
// 		flex-direction: row;
// 		flex: 1;
// 		.qubtn{
// 			height: 90rpx;
// 			width: 200rpx;
// 			display: flex;
// 			align-items: center;
// 			justify-content: center;
// 			background: #F5F5F5;
// 			border-radius: 45rpx;
// 			font-weight: bold;
// 			font-size: 28rpx;
// 			color: #333333;
// 		}
// 		.queren{
// 			background: linear-gradient(90deg, #FF8F39, #FF4D43);
// 			color: #fff;
// 			margin-left: auto;
// 		}
// 	}
// }